package com.itheima.io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        FileInputStream in = new FileInputStream("day01/a.txt");

        byte[] bytes = new byte[2];

        int len=0;

        while ((len=in.read(bytes))!=-1){
            System.out.print(new String(bytes,0,len));
        }

        in.close();
    }
}
